<template>
	<!-- 小程序路径 -->
	<view>
		<view style="height: 20rpx;">

		</view>
		<view class="topbox">
			<el-form label-position="right" label-width="100px">
				<el-form-item label="首页">
					<el-col :span="17">
						<el-input v-model="path.index" :disabled="true"></el-input>
					</el-col>
					<el-col :span="3">
						<el-button type="success" round size="mini" @click="copy_url(path.index)">复制路径</el-button>
					</el-col>
				</el-form-item>

				<el-form-item label="追剧">
					<el-col :span="17">
						<el-input v-model="path.zj" :disabled="true"></el-input>
					</el-col>
					<el-col :span="3">
						<el-button type="success" round size="mini" @click="copy_url(path.zj)">复制路径</el-button>
					</el-col>
				</el-form-item>

				<el-form-item label="我的">
					<el-col :span="17">
						<el-input v-model="path.my" :disabled="true"></el-input>
					</el-col>
					<el-col :span="3">
						<el-button type="success" round size="mini" @click="copy_url(path.my)">复制路径</el-button>
					</el-col>
				</el-form-item>

				<el-form-item label="免费领豆">
					<el-col :span="17">
						<el-input v-model="path.freeReceive" :disabled="true"></el-input>
					</el-col>
					<el-col :span="3">
						<el-button type="success" round size="mini" @click="copy_url(path.freeReceive)">复制路径</el-button>
					</el-col>
				</el-form-item>

				<el-form-item label="邀请好友">
					<el-col :span="17">
						<el-input v-model="path.invite" :disabled="true"></el-input>
					</el-col>
					<el-col :span="3">
						<el-button type="success" round size="mini" @click="copy_url(path.invite)">复制路径</el-button>
					</el-col>
				</el-form-item>

				<el-form-item label="播放页">
					<el-col :span="17">
						<el-input v-model="path.player" :disabled="true"></el-input>
					</el-col>
					<el-col :span="3">
						<el-button type="success" round size="mini" @click="copy_url(path.player)">复制路径</el-button>
					</el-col>
				</el-form-item>

				<el-form-item label="签到">
					<el-col :span="17">
						<el-input v-model="path.signin" :disabled="true"></el-input>
					</el-col>
					<el-col :span="3">
						<el-button type="success" round size="mini" @click="copy_url(path.signin)">复制路径</el-button>
					</el-col>
				</el-form-item>

				<el-form-item label="继续播放">
					<el-col :span="17">
						<el-input v-model="path.record" :disabled="true"></el-input>
					</el-col>
					<el-col :span="3">
						<el-button type="success" round size="mini" @click="copy_url(path.record)">复制路径</el-button>
					</el-col>
				</el-form-item>

				<el-form-item label="充值">
					<el-col :span="17">
						<el-input v-model="path.recharge" :disabled="true"></el-input>
					</el-col>
					<el-col :span="3">
						<el-button type="success" round size="mini" @click="copy_url(path.recharge)">复制路径</el-button>
					</el-col>
				</el-form-item>

				<el-form-item label="排行榜">
					<el-col :span="17">
						<el-input v-model="path.rank" :disabled="true"></el-input>
					</el-col>
					<el-col :span="3">
						<el-button type="success" round size="mini" @click="copy_url(path.rank)">复制路径</el-button>
					</el-col>
				</el-form-item>

				<el-form-item label="客服二维码">
					<el-col :span="17">
						<el-input v-model="path.qrcode" :disabled="true"></el-input>
					</el-col>
					<el-col :span="3">
						<el-button type="success" round size="mini" @click="copy_url(path.qrcode)">复制路径</el-button>
					</el-col>
				</el-form-item>

				<el-form-item label="卡密兑换">
					<el-col :span="17">
						<el-input v-model="path.cdkey" :disabled="true"></el-input>
					</el-col>
					<el-col :span="3">
						<el-button type="success" round size="mini" @click="copy_url(path.cdkey)">复制路径</el-button>
					</el-col>
				</el-form-item>

				<el-form-item label="新人首充">
					<el-col :span="17">
						<el-input v-model="path.discount" :disabled="true"></el-input>
					</el-col>
					<el-col :span="3">
						<el-button type="success" round size="mini" @click="copy_url(path.discount)">复制路径</el-button>
					</el-col>
				</el-form-item>

			</el-form>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				path: {
					index: "/pages/index/index",
					zj: "/pages/Tabbar/watching/watching",
					my: "/pages/Tabbar/my/my",
					freeReceive: "/pages/index/index?path=freeReceive",
					invite: "/pages_sub/invite/invite",
					player: "/pages/index/index?path=player&tv_id=(剧的ID)&series=(第几集)",
					signin: "/pages/index/index?path=signin",
					record: "/pages/index/index?path=record",
					recharge: "/pages_sub/recharge/recharge",
					rank: "/pages_sub/rank/rank",
					qrcode: "/pages_sub/qrcode/qrcode",
					cdkey: "/pages_sub/cdkey/cdkey",
					discount: "/pages_sub/recharge/discount"
				}
			}
		},
		methods: {
			copy_url(url) {
				uni.setClipboardData({
					data: url
				})
				vk.toast("已复制：" + url);
			},
		}
	}
</script>

<style>
	.topbox {
		width: 80%;
		box-shadow: 2rpx 4rpx 8rpx 3rpx rgba(0, 0, 0, 0.2), 0 6rpx 20rpx 0 rgba(0, 0, 0, 0);
		margin: 20rpx;
		padding: 20rpx;
		border-radius: 20rpx;
	}
</style>
